#include "foreimage.hpp"
#include "global.hpp"

void ForeImage::Render( float camX, float camY ) const
{
	glColor4f(1,1,1,0.65f);

	image.Render(x+(focalX-camX)*2-camX, y-camY);
	glColor4f(1,1,1,1);
}

void ForeImage::RelPosition( float x, float y )
{
	AbsPosition(x,y);
	focalX = x+image.Width()/2 - Global::Game::Width/2;
}
